package bairui.international.console.web.controller.advance.category;

import com.lianjing.sh.spring.web.controller.enhance.output.bean.*;

/**
 *
 * @see bairui.international.console.web.controller.advance.category.Tree_Output 数据
 *
 */
@SuppressWarnings("serial")
class Tree_OutputInfo
{

	/**
	 * 输出信息
	 */
	protected final static OutputBean[] outputInfo() {
		return outputInfo(new OutputData());
	}
	protected final static OutputBean[] outputInfo(OutputData outputData) {
		return new OutputBean[]{
					outputData.getId(),
					outputData.getName(),
					outputData.getNumber(),
					outputData.getLevel(),
			};
	}
	
	protected static class OutputData {
		OutputBean getId(){
			return new OutputBean("id", "", true, DataDisplay.Hide, DataType.Long, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getName(){
			return new OutputBean("name", "名称", true, DataDisplay.Show, DataType.String, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getNumber(){
			return new OutputBean("number", "代码", true, DataDisplay.Show, DataType.String, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getLevel(){
			return new OutputBean("level", "级别", true, DataDisplay.Show, DataType.Integer, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
	}
	
	/**
	 * 分页信息
	 */
	protected final static com.lianjing.sh.spring.web.controller.enhance.output.page.GenerateFindFilterPageBean pageInfo() {
		return new com.lianjing.sh.spring.web.controller.enhance.output.page.GenerateFindFilterPageBean(
			"startPage", 
			"pageSize", 
			0, 
			10, 
			"开始位置", 
			"最大显示"
		);
	}
	
	/**
	 * 排序信息
	 */
	protected final static com.lianjing.sh.spring.web.controller.enhance.output.order.GenerateFindFilterOrderBean orderInfo() {
		return new com.lianjing.sh.spring.web.controller.enhance.output.order.GenerateFindFilterOrderBean(
			com.lianjing.sh.web.separatepage.OrderInfo.OrderBy, 
			com.lianjing.sh.web.separatepage.OrderInfo.OrderWay, 
			"id",
			org.springframework.data.domain.Sort.Direction.DESC
		);
	}
	

}

